package info.thereisonlywe.core.objects;


public class NumberRange implements SequentialRange<Double> {

	public final Double start; // first value
	public final Double end; // last value (inclusive)

	public NumberRange(Double start, Double end)
	{
		this.start = start;
		this.end = end;
	}

	@Override
	public Double getRangeStart()
	{
		return start;
	}

	@Override
	public Double getRangeEnd()
	{
		return end;
	}

	@Override
	public boolean isInRange(Double k)
	{
		if (k >= this.start && k <= this.end) return true;
		return false;
	}
}
